package com.jike.shop.cloud.model.goods;

import com.baomidou.mybatisplus.annotation.TableName;
import com.jike.shop.cloud.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;


@Data
@EqualsAndHashCode(callSuper = false)
@TableName("good_image")
@ApiModel(value="goods_image对象", description="商品图片")
public class GoodsImage extends BaseModel {
    @ApiModelProperty(value = "商品id")
    private Long goodsId;

    @ApiModelProperty(value = "sku id")
    private Long skuId;

    @ApiModelProperty(value = "图片url地址")
    private String url;

    @ApiModelProperty(value = "图片名称")
    private String name;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "图片位置(0: 商品素材 1: 规格图片 2: 商品详情)")
    private Integer position;

    @ApiModelProperty(value = "类型(0: 图片 1: 视频)")
    private Boolean mimeType;

    @ApiModelProperty(value = "高度")
    private Double height;

    @ApiModelProperty(value = "宽度")
    private Double width;

    @ApiModelProperty(value = "时长")
    private Integer duration;
}
